﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NLBS.Data.Interface;
using NLBS.Entity;
namespace NLBS.Data.SqlDataService
{
    public class FriendLinkService:IFriendLinkService
    {
        private DbProvider db
        {
            get
            {
                return DbProvider.Instance();
            }
        }

        #region IFriendLinkService Members

        public IList<FriendLink> GetLinks(LinkItemType linkType)
        {
            return db.GetLinks(linkType);
        }

        public FriendLink GetLinkByID(int linkID)
        {
            return db.GetLinkByID(linkID);
        }

        public void InsertLink(FriendLink link)
        {
            db.InsertLink(link);
        }

        public int UpdateLink(FriendLink link)
        {
           return db.UpdateLink(link);
        }

        public int DeleteLink(int linkID)
        {
           return db.DeleteLink(linkID);
        }

        #endregion
    }
}
